import request from '@/utils/request'

// 查询录取通知列表
export function listRegisterNotice(query) {
  return request({
    url: '/business/registerNotice/list',
    method: 'get',
    params: query
  })
}

// 查询录取通知所有列表
export function listAllRegisterNotice(query) {
  return request({
    url: '/business/registerNotice/listAll',
    method: 'get',
    params: query
  })
}

// 查询录取通知详细
export function getRegisterNotice(id) {
  return request({
    url: '/business/registerNotice/getInfo/' + id,
    method: 'get'
  })
}

// 新增录取通知
export function addRegisterNotice(data) {
  return request({
    url: '/business/registerNotice/add',
    method: 'post',
    data: data
  })
}

// 修改录取通知
export function updateRegisterNotice(data) {
  return request({
    url: '/business/registerNotice/edit',
    method: 'post',
    data: data
  })
}

// 删除录取通知
export function delRegisterNotice(id) {
  return request({
    url: '/business/registerNotice/remove/' + id,
    method: 'get'
  })
}
